package cn.xydpeng.springframework.aop.support;

/**
 * @author xydpeng
 * @version v1.0
 * @date: 2022/10/21
 * @description:
 */
public abstract class AbstractExpressionPointcut implements ExpressionPointcut {
    private String expression;

    @Override
    public String getExpression() {
        return this.expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
        onSetExpression(expression);
    }

    protected abstract void onSetExpression(String expression) throws IllegalArgumentException;
}
